<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="contextPath" value="${pageContext.servletContext.contextPath}"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="nl">
<head>
<title>Pizza Luigi - pizza's tussen prijzen</title>
<link rel="stylesheet" href="${contextPath}/Styles/default.css"/>
</head>
<body>
<c:import url="/WEB-INF/JSP/menu.jsp"/>
<h1>Pizza's tussen prijzen</h1>
<c:url value="/pizzas/tussenprijzen.htm" var="url"/>
<form method="get" action="${url}">
<label>Van Prijs: <span class="fout">${fouten.van}
<input name="van" value="${param.van}"></span></label>
<label>Tot Prijs: <span class="fout">${fouten.tot}
<input name="tot" value="${param.tot}"></span></label>
<input type="submit" value="zoeken">
</form>
<c:if test="${not empty pizzas}">
<ul>
<c:forEach var="pizza" items="${pizzas}">
<li><c:out value="${pizza.naam}" /> ${pizza.prijs}&euro;</li>
</c:forEach>
</ul>
</c:if>
<c:if test="${empty fouten and pizzas.size()==0}">
<div>geen pizza's gevonden</div>
</c:if>
</body>
</html>